Fix gtk_widget_get_allocation()
authorMichael Natterer <mitch@gimp.org>
Thu, 30 Jul 2009 09:49:47 +0000 (11:49 +0200)
committerMichael Natterer <mitch@gimp.org>
Thu, 30 Jul 2009 09:49:47 +0000 (11:49 +0200)
- add it to the header
- add the symbol to gtk.symbols
- fix coding style and check for allocation != NULL

gtk/gtk.symbols
gtk/gtkwidget.c
gtk/gtkwidget.h

index 8f17063cbef0e82f4c62ccf7ea6cb8278a654544..d120fec69fdde30e5d47058706caa466eab66b5f 100644 (file)
@@ -4956,6 +4956,7 @@ gtk_widget_error_bell
 gtk_widget_event
 gtk_widget_freeze_child_notify
 gtk_widget_get_accessible
+gtk_widget_get_allocation
 gtk_widget_get_ancestor
 gtk_widget_get_app_paintable
 gtk_widget_get_child_requisition
index 075e3655897f606f444c35666c0fc86adc759dfb..a81dc2debc7bc7f8cf5ca0b5247d2d3da6f87775 100644 (file)
@@ -10686,9 +10686,11 @@ gtk_widget_get_has_tooltip (GtkWidget *widget)
  * Since: 2.18
  */
 void
-gtk_widget_get_allocation (GtkWidget *widget, GtkAllocation *allocation)
+gtk_widget_get_allocation (GtkWidget     *widget,
+                           GtkAllocation *allocation)
 {
   g_return_if_fail (GTK_IS_WIDGET (widget));
+  g_return_if_fail (allocation != NULL);
 
   *allocation = widget->allocation;
 }
index 70be8efe15536118bcba49ef59c660d5991b9eaa..e074baa860bd39806e4a39b86924eeda898b282b 100644 (file)
@@ -599,6 +599,9 @@ void                  gtk_widget_set_child_visible      (GtkWidget    *widget,
 gboolean              gtk_widget_get_child_visible      (GtkWidget    *widget);
 GdkWindow*            gtk_widget_get_window             (GtkWidget    *widget);
 
+void                  gtk_widget_get_allocation         (GtkWidget     *widget,
+                                                         GtkAllocation *allocation);
+
 gboolean   gtk_widget_child_focus         (GtkWidget           *widget,
                                            GtkDirectionType     direction);
 gboolean   gtk_widget_keynav_failed       (GtkWidget           *widget,